home *** CD-ROM | disk | FTP | other *** search
/ Programming a Multiplayer FPS in DirectX / Programming a Multiplayer FPS in DirectX (Companion CD).iso / DirectX / dxsdk_oct2004.exe / dxsdk.exe / Utilities / MView / gxu / npatchoutline.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-09-30  |  1.2 KB  |  46 lines

  1. #pragma once
  2.  
  3. #ifndef NPATCHOUTLINE_H
  4. #define NPATCHOUTLINE_H
  5.  
  6. /*//////////////////////////////////////////////////////////////////////////////
  7. //
  8. // File: edgeoutline.h
  9. //
  10. // Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  11. //
  12. //
  13. //////////////////////////////////////////////////////////////////////////////*/
  14.  
  15. #include "gxcrackfvf.h"
  16.  
  17. class CNPatchOutline
  18. {
  19. public:
  20.     CNPatchOutline();
  21.     ~CNPatchOutline();
  22.  
  23.     HRESULT Init(LPD3DXBASEMESH ptmDrawMesh, DWORD cTesselateSegments);
  24.     HRESULT Draw(LPD3DXBASEMESH ptmDrawMesh, DWORD iSubset);
  25.     HRESULT DrawFace(LPD3DXBASEMESH ptmDrawMesh, DWORD iFace, DWORD iSubset);
  26.  
  27.     HRESULT CreateEmptyOutline();
  28. private:
  29.     HRESULT DrawInternal(LPD3DXBASEMESH ptmDrawMesh, DWORD iSubset, DWORD iStartLine, DWORD cLines);
  30.  
  31.     LPDIRECT3DDEVICE9 m_pDevice;
  32.     LPDIRECT3DINDEXBUFFER9 m_pIndexBuffer;
  33.  
  34.     LPDIRECT3DVERTEXDECLARATION9 m_pDeclObj;
  35.     D3DVERTEXELEMENT9 m_pDecl[MAX_FVF_DECL_SIZE];
  36.     DWORD m_cBytesPerVertex;
  37.  
  38.     DWORD m_cLinesPerOrigFace;
  39.     D3DXATTRIBUTERANGE *m_rgaeAttributeTable;
  40.     DWORD m_caeAttributeTable;
  41.  
  42.     BOOL m_bEmulate32BitIndex;
  43. };
  44.  
  45. #endif
  46.